﻿using MG.SmartHMI.Entity.DAO;
using MG.SmartHMI.Model.VO;
using Nelibur.ObjectMapper;

namespace MG.SmartHMI.Common
{
    internal class TinyMapHelper
    {
        public static void InitMapper()
        {
            TinyMapper.Bind<AxisConfigVO, AxisConfig>();
            TinyMapper.Bind<AxisConfig, AxisConfigVO>();

            TinyMapper.Bind<ModbusInfVO, ModbusInfo>();
            TinyMapper.Bind<ModbusInfo, ModbusInfVO>();

            TinyMapper.Bind<RegisterConfig, RegisterConfigVO>();
            TinyMapper.Bind<RegisterConfigVO, RegisterConfig>();

            TinyMapper.Bind<MessageStateConfig, MessageStateConfigVO>();
            TinyMapper.Bind<MessageStateConfigVO, MessageStateConfig>();
        }
    }
}